package cn.web.tunnelrobot.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.Alias;
import java.util.Date;

@Alias("RealTimeData")
public class RealTimeData {
    //(1:温度 2:湿度 3:氧气浓度 4:光照强度 5:粉尘浓度 6:瓦斯浓度 7:电量预警)
    private Float temperature;
    private Float humidity;
    private Float oxygenConcentrations;
    private Float lightIntensity;
    private Float dustConcentration;
    private Float gasDensity;
    private Integer batteryWarning;
    private Integer spareBatteryWarning;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    private Integer RobotPosition;

    public Integer getRobotPosition() {
        return RobotPosition;
    }

    public void setRobotPosition(Integer robotPosition) {
        RobotPosition = robotPosition;
    }

    public Date getTime() {
        return time;
    }
    public void setTime(Date time) {
        this.time = time;
    }
    public Float getTemperature() {
        return temperature;
    }
    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }
    public Float getHumidity() {
        return humidity;
    }
    public void setHumidity(Float humidity) {
        this.humidity = humidity;
    }
    public Float getOxygenConcentrations() {
        return oxygenConcentrations;
    }
    public void setOxygenConcentrations(Float oxygenConcentrations) {
        this.oxygenConcentrations = oxygenConcentrations;
    }
    public Float getLightIntensity() {
        return lightIntensity;
    }
    public void setLightIntensity(Float lightIntensity) {
        this.lightIntensity = lightIntensity;
    }
    public Float getDustConcentration() {
        return dustConcentration;
    }
    public void setDustConcentration(Float dustConcentration) {
        this.dustConcentration = dustConcentration;
    }
    public Float getGasDensity() {
        return gasDensity;
    }
    public void setGasDensity(Float gasDensity) {
        this.gasDensity = gasDensity;
    }
    public Integer getBatteryWarning() {
        return batteryWarning;
    }
    public void setBatteryWarning(Integer batteryWarning) {
        this.batteryWarning = batteryWarning;
    }

    public Integer getSpareBatteryWarning() {
        return spareBatteryWarning;
    }

    public void setSpareBatteryWarning(Integer spareBatteryWarning) {
        this.spareBatteryWarning = spareBatteryWarning;
    }
}
